check for an existing user laravel eloquent

87

$user = User::where('email', '=', Input::get('email'))->first();
if ($user === null) {
   // user doesn't exist
}
if (User::where('email', '=', Input::get('email'))->exists()) {
   // user found
}

Comments

Submit
0 Comments